// Droplet.cpp

#include "DropletThread.h"

using namespace Droplets;

void *Droplets::DropletThread(void *obj)
{
	DropletThreadData *dtd = (DropletThreadData *)obj;
	void *retval = NULL;

	switch(dtd->program)
	{
	case PROGRAM_1 :
		retval = Program1(obj);
		break;

	case PROGRAM_2 :
		retval = Program2(obj);
		break;

	case PROGRAM_3 :
		retval = Program3(obj);
		break;

	case PROGRAM_4 :
		retval = Program4(obj);
		break;

	case PROGRAM_5 :
		retval = Program5(obj);
		break;
	};

	return retval;
}